package com.itheima.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Timestamp;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhengbinghua
 * @since 2023-03-02
 */
@Getter
@Setter
@TableName("shopping_cart")
public class ShoppingCart implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    private String name;

    /**
     * 用户id
     */
    private String userId;

    /**
     * 数量
     */
    private Integer number;

    /**
     * 单份金额
     */
    private BigDecimal amount;

    /**
     * 菜品id
     */
    private String dishId;

    /**
     * 套餐id
     */
    private String setmealId;

    /**
     * 口味
     */
    private String dishFlavor;

    /**
     * 配图
     */
    private String image;

    /**
     * 创建时间
     */
    private Timestamp createTime;
}
